<template>
    <div class="classSelector">
      <ul class="list">
        <li class="list-item">
          全班班级
        </li >

        <li class="list-item item-active">
          九年十二班
        </li>

        <li class="list-item">
          实验二班
        </li>

        <li class="list-item">
          九年十二班
        </li>
      </ul>
      <div class="iconArea">
        <div class="iconfont icon-xia"></div>
      </div>
    </div>
</template>

<script>
  export default {
    name: 'classSelector',
    data () {
      return {
        test: 123456
      }
    }
  }
</script>

<style scoped>
  .classSelector {
    width: 690rpx;
    margin: 0 auto;
    display: flex;
  }

  .list {
    display: flex;
    width: 620rpx;
    flex-wrap: nowrap;
    overflow: hidden;
    height: 70rpx;
  }

  .iconArea {
    width: 70rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .list-item {
    height: 64rpx;
    line-height: 64rpx;
    padding: 0 25rpx;
    margin-right: 16rpx;
    flex-shrink: 0;
    border: 1px solid #ccc;
    border-radius: 30rpx;
    color: rgba(140, 150, 153, 1);
  }

  .item-active {
    background: rgba(51, 170, 255, 1);
    border-color: rgba(51, 170, 255, 1);
    color: #fff;
  }
</style>
